package com.wnn.demo.model.business.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ProductInfo", description = "商品信息实体类")
public class ProductInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键 id
     */
    @Id
    @Column(name = "pro_id")
    @ApiModelProperty(value = "商品 id，数据库默认自增", name = "proId", dataType = "Integer")
    private Integer proId;

    /**
     * 商品名称
     */
    @Column(name = "pro_name")
    @ApiModelProperty(value = "商品名称", name = "proName", dataType = "String")
    private String proName;

    /**
     * 商品是否上架状态：0：下架状态；1：上架状态
     */
    @Column(name = "pro_status")
    @ApiModelProperty(value = "商品是否上架状态：0：下架状态；1：上架状态", name = "proStatus", dataType = "Integer")
    private Integer proStatus;

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public Integer getProStatus() {
        return proStatus;
    }

    public void setProStatus(Integer proStatus) {
        this.proStatus = proStatus;
    }

}
